﻿namespace Core.Domain
{
	using System;

	public class Account
	{
		public virtual int Id
		{
			get;
			set;
		}

		public virtual string Password
		{
			get; 
			set;
		}

		public virtual Person Person
		{
			get; 
			set;
		}

		public virtual bool CanAthenticate(string password)
		{
			return password == Password;
		}
	}
}
